//
//  MineNoticeCell.m
//  YongChuanTradingArea
//
//  Created by Vivian on 2017/9/20.
//  Copyright © 2017年 李冰. All rights reserved.
//

#import "MineNoticeCell.h"

@interface MineNoticeCell ()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *subtitleLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;

@end

@implementation MineNoticeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(MineNoticeModel *)model{
    _model = model;
    self.titleLabel.text = _model.title;
    self.subtitleLabel.text = _model.content;
    self.timeLabel.text = [NSDate timeStringWithTimestamp:[_model.addtime getTimestamp] formatterString:@"yyyy-MM-dd"];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
